import './static/style.scss';
import App from './App';
import { pageBack, pageTo } from './utils/common';

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';

Vue.prototype.$pageBack = pageBack;
Vue.prototype.$pageTo = pageTo;
Vue.config.productionTip = false;
App.mpType = 'app';

const initApp = () => {
  const app = new Vue({
    ...App,
  });
  app.$mount();
  console.log(getApp());
};

initApp();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';

export function createApp() {
  const app = createSSRApp(App);
  return {
    app,
  };
}

// #endif
